<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://xmlns.jcp.org/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.ViewEmpleadoTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputText value="#{bundle.ViewEmpleadoLabel_cedula}"/>
                    <h:outputText value="#{empleadoController.selected.cedula}" title="#{bundle.ViewEmpleadoTitle_cedula}"/>
                    <h:outputText value="#{bundle.ViewEmpleadoLabel_nombres}"/>
                    <h:outputText value="#{empleadoController.selected.nombres}" title="#{bundle.ViewEmpleadoTitle_nombres}"/>
                    <h:outputText value="#{bundle.ViewEmpleadoLabel_apellidos}"/>
                    <h:outputText value="#{empleadoController.selected.apellidos}" title="#{bundle.ViewEmpleadoTitle_apellidos}"/>
                    <h:outputText value="#{bundle.ViewEmpleadoLabel_direccion}"/>
                    <h:outputText value="#{empleadoController.selected.direccion}" title="#{bundle.ViewEmpleadoTitle_direccion}"/>
                    <h:outputText value="#{bundle.ViewEmpleadoLabel_tipoS}"/>
                    <h:outputText value="#{empleadoController.selected.tipoS}" title="#{bundle.ViewEmpleadoTitle_tipoS}"/>
                    <h:outputText value="#{bundle.ViewEmpleadoLabel_nivel}"/>
                    <h:outputText value="#{empleadoController.selected.nivel}" title="#{bundle.ViewEmpleadoTitle_nivel}"/>
                    <h:outputText value="#{bundle.ViewEmpleadoLabel_foto}"/>
                    <h:outputText value="#{empleadoController.selected.foto}" title="#{bundle.ViewEmpleadoTitle_foto}"/>
                    <h:outputText value="#{bundle.ViewEmpleadoLabel_peso}"/>
                    <h:outputText value="#{empleadoController.selected.peso}" title="#{bundle.ViewEmpleadoTitle_peso}"/>
                    <h:outputText value="#{bundle.ViewEmpleadoLabel_estatura}"/>
                    <h:outputText value="#{empleadoController.selected.estatura}" title="#{bundle.ViewEmpleadoTitle_estatura}"/>
                    <h:outputText value="#{bundle.ViewEmpleadoLabel_fechaNacim}"/>
                    <h:outputText value="#{empleadoController.selected.fechaNacim}" title="#{bundle.ViewEmpleadoTitle_fechaNacim}">
                        <f:convertDateTime pattern="MM/dd/yyyy" />
                    </h:outputText>
                    <h:outputText value="#{bundle.ViewEmpleadoLabel_sexo}"/>
                    <h:outputText value="#{empleadoController.selected.sexo}" title="#{bundle.ViewEmpleadoTitle_sexo}"/>
                </h:panelGrid>
                <br />
                <h:commandLink action="#{empleadoController.destroyAndView}" value="#{bundle.ViewEmpleadoDestroyLink}"/>
                <br />
                <br />
                <h:link outcome="Edit" value="#{bundle.ViewEmpleadoEditLink}"/>
                <br />
                <h:commandLink action="#{empleadoController.prepareCreate}" value="#{bundle.ViewEmpleadoCreateLink}" />
                <br />
                <h:commandLink action="#{empleadoController.prepareList}" value="#{bundle.ViewEmpleadoShowAllLink}"/>
                <br />
                <br />
                <h:link outcome="/index" value="#{bundle.ViewEmpleadoIndexLink}"/>

            </h:form>
        </ui:define>
    </ui:composition>

</html>
